package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.TravelBaseBabelMapper;
import cn.source.system.domain.TravelBaseBabel;
import cn.source.system.service.ITravelBaseBabelService;

/**
 * 基地标签Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-06-18
 */
@Service
public class TravelBaseBabelServiceImpl implements ITravelBaseBabelService 
{
    @Autowired
    private TravelBaseBabelMapper travelBaseBabelMapper;

    /**
     * 查询基地标签
     * 
     * @param id 基地标签主键
     * @return 基地标签
     */
    @Override
    public TravelBaseBabel selectTravelBaseBabelById(Long id)
    {
        return travelBaseBabelMapper.selectTravelBaseBabelById(id);
    }

    /**
     * 查询基地标签列表
     * 
     * @param travelBaseBabel 基地标签
     * @return 基地标签
     */
    @Override
    public List<TravelBaseBabel> selectTravelBaseBabelList(TravelBaseBabel travelBaseBabel)
    {
        return travelBaseBabelMapper.selectTravelBaseBabelList(travelBaseBabel);
    }

    /**
     * 新增基地标签
     * 
     * @param travelBaseBabel 基地标签
     * @return 结果
     */
    @Override
    public int insertTravelBaseBabel(TravelBaseBabel travelBaseBabel)
    {
        return travelBaseBabelMapper.insertTravelBaseBabel(travelBaseBabel);
    }

    /**
     * 修改基地标签
     * 
     * @param travelBaseBabel 基地标签
     * @return 结果
     */
    @Override
    public int updateTravelBaseBabel(TravelBaseBabel travelBaseBabel)
    {
        return travelBaseBabelMapper.updateTravelBaseBabel(travelBaseBabel);
    }

    /**
     * 批量删除基地标签
     * 
     * @param ids 需要删除的基地标签主键
     * @return 结果
     */
    @Override
    public int deleteTravelBaseBabelByIds(Long[] ids)
    {
        return travelBaseBabelMapper.deleteTravelBaseBabelByIds(ids);
    }

    /**
     * 删除基地标签信息
     * 
     * @param id 基地标签主键
     * @return 结果
     */
    @Override
    public int deleteTravelBaseBabelById(Long id)
    {
        return travelBaseBabelMapper.deleteTravelBaseBabelById(id);
    }
}
